package com.baox.agridata.synchronous.service.shanxi.impl;

import com.baox.agridata.synchronous.dao.shanxi.TCCPBMapper;
import com.baox.agridata.synchronous.entity.quanguo.Jyzdds;
import com.baox.agridata.synchronous.entity.quanguo.Jyzscpb;
import com.baox.agridata.synchronous.entity.shanxi.TCCPBEntity;
import com.baox.agridata.synchronous.service.shanxi.TCCPBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TCCPBServiceImpl implements TCCPBService {

    @Autowired
    private TCCPBMapper tccpbMapper;


    @Override
    public TCCPBEntity selectTCCPBInfoByFactoryCode(String factoryCode) {
        return tccpbMapper.selectTCCPBInfoByFactoryCode(factoryCode);
    }

    @Override
    public Integer updateTCCPBStatus(String Status, String lastUpdate, String mid) {
        return tccpbMapper.updateTCCPBStatus(Status, lastUpdate, mid);
    }

    @Override
    public List<Jyzscpb> getLocalCCPBList(String startTime, String endTime, String factoryCode) {
        return tccpbMapper.getLocalCCPBList(startTime, endTime, factoryCode);
    }

    @Override
    public List<Jyzdds> selectJyzDDsFromTCCPB(String createTime) {
        return tccpbMapper.selectJyzDDsFromTCCPB(createTime);
    }
}
